﻿using ProtobufNet.IProtoServices;
using ProtobufNet.Model;
using System.Threading.Tasks;

namespace ProtobufNet.ProtoServices
{
    public class protobufService : Iprotobuf
    {
        public Task<ProtobufResponse> GetProtoList(ProtobufRequest protobufRequest)
        {
            return Task.Run(() =>

                new ProtobufResponse()
                {
                    ResponseInfo = $"返回信息:{protobufRequest.RequestInfo}",
                    ResponseName = $"返回名称:{protobufRequest.RequestName}"
                });
        }
    }
}